﻿@using Radzen
@using Microsoft.AspNetCore.Components.Forms
@inherits FormComponentWithAutoComplete<string>
@implements IRadzenFormComponent
@if (Visible)
{
	if (Immediate)
	{
		<input @ref="@Element" id="@GetId()" name="@Name" disabled="@Disabled" readonly="@ReadOnly" style="@Style" type="password" @attributes="Attributes" class="@GetCssClass()"
		       placeholder="@CurrentPlaceholder" autocomplete="@AutoCompleteAttribute" value="@Value" tabindex="@(Disabled ? "-1" : $"{TabIndex}")" @oninput="@OnChange" />
	}
	else
	{
		<input @ref="@Element" id="@GetId()" name="@Name" disabled="@Disabled" readonly="@ReadOnly" style="@Style" type="password" @attributes="Attributes" class="@GetCssClass()"
		       placeholder="@CurrentPlaceholder" autocomplete="@AutoCompleteAttribute" value="@Value" tabindex="@(Disabled ? "-1" : $"{TabIndex}")" @onchange="@OnChange" />
	}
}
